import request from '@/utils/request'

// 查询全部申请
export function listApply(query) {
    return request({
        url: '/apply/list',
        method: 'post',
        data: query,
    })
}

// 删除菜单
export function delApply(applyId) {
    return request({
        url: 'apply/delete/' + applyId,
        method: 'post',
    })
}

// 新增部门
export function add(data) {
    return request({
        url: '/apply/save',
        method: 'post',
        data: data,
    })
}

export function updateStatus(data) {
    return request({
        url: 'apply/updateStatus',
        method: 'post',
        params: data
    })
}
